package com.stone.bean.dto;

import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import javax.validation.constraints.NotEmpty;
import javax.validation.constraints.NotNull;
import java.io.Serializable;

/**
 * @author stone
 * @date 2022/4/22 9:24
 */
@Data
public class ConfigUpdateDTO implements Serializable {

    @NotNull(message = "id不能为空")
    @ApiModelProperty(value = "id")
    private Long id;

    @NotEmpty(message = "参数编码不能为空")
    @ApiModelProperty(value = "参数编码")
    private String configCode;
    @NotEmpty(message = "参数名称不能为空")
    @ApiModelProperty(value = "参数名称")
    private String configName;
    @NotEmpty(message = "父参数编码不能为空")
    @ApiModelProperty(value = "父参数编码(顶级为0)")
    private String parentCode;
    @ApiModelProperty(value = "排序")
    private Integer sort;

}
